﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ForzaGT3.Areas.Admin.Models
{
    public class PageModel
    {
        public Guid Id { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Url")]
        public string Url { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Title")]
        public string Title { get; set; }

        [Display(Name = "Intro")]
        [AllowHtml]
        public string Intro { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "Body")]
        [AllowHtml]
        public string Content { get; set; }
      
        [Display(Name = "News Title")]
        public string TitleEnglish { get; set; }

        [Display(Name = "Intro")]
        [AllowHtml]
        public string IntroEnglish { get; set; }

        [Display(Name = "Body")]
        [AllowHtml]
        public string ContentEnglish { get; set; }

        [Display(Name = "Image")]
        public HttpPostedFileBase Image { get; set; }

        public string ImageUrl { get; set; }
    }
}